🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / testing / src / commonMain / kotlin / org / meshtastic / core / testing / FakeServiceRepository.kt
Displaying Raw • Download
core/testing/src/commonMain/kotlin/org/meshtastic/core/testing/FakeServiceRepository.kt e249461e3c77e41a3928c01537da0a173c687621 (e249461e) Text, 3.90 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.testing
Tff7b72import T7ee787co.touchlab.kermit.Severity
Tff7b72import T7ee787kotlinx.coroutines.flow.Flow
Tff7b72import T7ee787kotlinx.coroutines.flow.MutableSharedFlow
Tff7b72import T7ee787kotlinx.coroutines.flow.MutableStateFlow
Tff7b72import T7ee787kotlinx.coroutines.flow.SharedFlow
Tff7b72import T7ee787kotlinx.coroutines.flow.StateFlow
Tff7b72import T7ee787org.meshtastic.core.model.ConnectionState
Tff7b72import T7ee787org.meshtastic.core.model.service.ServiceAction
Tff7b72import T7ee787org.meshtastic.core.model.service.TracerouteResponse
Tff7b72import T7ee787org.meshtastic.core.repository.ServiceRepository
Tff7b72import T7ee787org.meshtastic.proto.ClientNotification
Tff7b72import T7ee787org.meshtastic.proto.MeshPacket
Tf0883e@SuppressTb4b4b4(Ta5d6ff"Ta5d6ffTooManyFunctionsTa5d6ff"Tb4b4b4)
Tff7b72class T56d364FakeServiceRepository Tb4b4b4: Te6edf3ServiceRepository Tb4b4b4{
Tff7b72private Tff7b72val Te6edf3_connectionState Tff7b72= Te6edf3MutableStateFlowTff7b72<Te6edf3ConnectionStateTff7b72>Tb4b4b4(Te6edf3ConnectionStateTb4b4b4.Te6edf3DisconnectedTb4b4b4)
Tff7b72override Tff7b72val Te6edf3connectionStateTb4b4b4: Te6edf3StateFlowTff7b72<Te6edf3ConnectionStateTff7b72> Tff7b72= Te6edf3_connectionState
Tff7b72override Tff7b72fun Td2a8ffsetConnectionStateTb4b4b4(Te6edf3connectionStateTb4b4b4: Te6edf3ConnectionStateTb4b4b4) Tb4b4b4{
Te6edf3_connectionStateTb4b4b4.Te6edf3value Tff7b72= Te6edf3connectionState
Tb4b4b4}
Tff7b72private Tff7b72val Te6edf3_clientNotification Tff7b72= Te6edf3MutableStateFlowTff7b72<Te6edf3ClientNotification?Tff7b72>Tb4b4b4(Tff7b72nullTb4b4b4)
Tff7b72override Tff7b72val Te6edf3clientNotificationTb4b4b4: Te6edf3StateFlowTff7b72<Te6edf3ClientNotification?Tff7b72> Tff7b72= Te6edf3_clientNotification
Tff7b72override Tff7b72fun Td2a8ffsetClientNotificationTb4b4b4(Te6edf3notificationTb4b4b4: Te6edf3ClientNotification?Tb4b4b4) Tb4b4b4{
Te6edf3_clientNotificationTb4b4b4.Te6edf3value Tff7b72= Te6edf3notification
Tb4b4b4}
Tff7b72override Tff7b72fun Td2a8ffclearClientNotificationTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3_clientNotificationTb4b4b4.Te6edf3value Tff7b72= Tff7b72null
Tb4b4b4}
Tff7b72private Tff7b72val Te6edf3_errorMessage Tff7b72= Te6edf3MutableStateFlowTff7b72<Tffa657String?Tff7b72>Tb4b4b4(Tff7b72nullTb4b4b4)
Tff7b72override Tff7b72val Te6edf3errorMessageTb4b4b4: Te6edf3StateFlowTff7b72<Tffa657String?Tff7b72> Tff7b72= Te6edf3_errorMessage
Tff7b72override Tff7b72fun Td2a8ffsetErrorMessageTb4b4b4(Te6edf3textTb4b4b4: Tffa657StringTb4b4b4, Te6edf3severityTb4b4b4: Te6edf3SeverityTb4b4b4) Tb4b4b4{
Te6edf3_errorMessageTb4b4b4.Te6edf3value Tff7b72= Te6edf3text
Tb4b4b4}
Tff7b72override Tff7b72fun Td2a8ffclearErrorMessageTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3_errorMessageTb4b4b4.Te6edf3value Tff7b72= Tff7b72null
Tb4b4b4}
Tff7b72private Tff7b72val Te6edf3_connectionProgress Tff7b72= Te6edf3MutableStateFlowTff7b72<Tffa657String?Tff7b72>Tb4b4b4(Tff7b72nullTb4b4b4)
Tff7b72override Tff7b72val Te6edf3connectionProgressTb4b4b4: Te6edf3StateFlowTff7b72<Tffa657String?Tff7b72> Tff7b72= Te6edf3_connectionProgress
Tff7b72override Tff7b72fun Td2a8ffsetConnectionProgressTb4b4b4(Te6edf3textTb4b4b4: Tffa657StringTb4b4b4) Tb4b4b4{
Te6edf3_connectionProgressTb4b4b4.Te6edf3value Tff7b72= Te6edf3text
Tb4b4b4}
Tff7b72private Tff7b72val Te6edf3_meshPacketFlow Tff7b72= Te6edf3MutableSharedFlowTff7b72<Te6edf3MeshPacketTff7b72>Tb4b4b4(Tb4b4b4)
Tff7b72override Tff7b72val Te6edf3meshPacketFlowTb4b4b4: Te6edf3SharedFlowTff7b72<Te6edf3MeshPacketTff7b72> Tff7b72= Te6edf3_meshPacketFlow
Tff7b72override Tff7b72suspend Tff7b72fun Td2a8ffemitMeshPacketTb4b4b4(Te6edf3packetTb4b4b4: Te6edf3MeshPacketTb4b4b4) Tb4b4b4{
Te6edf3_meshPacketFlowTb4b4b4.Te6edf3emitTb4b4b4(Te6edf3packetTb4b4b4)
Tb4b4b4}
Tff7b72private Tff7b72val Te6edf3_tracerouteResponse Tff7b72= Te6edf3MutableStateFlowTff7b72<Te6edf3TracerouteResponse?Tff7b72>Tb4b4b4(Tff7b72nullTb4b4b4)
Tff7b72override Tff7b72val Te6edf3tracerouteResponseTb4b4b4: Te6edf3StateFlowTff7b72<Te6edf3TracerouteResponse?Tff7b72> Tff7b72= Te6edf3_tracerouteResponse
Tff7b72override Tff7b72fun Td2a8ffsetTracerouteResponseTb4b4b4(Te6edf3valueTb4b4b4: Te6edf3TracerouteResponse?Tb4b4b4) Tb4b4b4{
Te6edf3_tracerouteResponseTb4b4b4.Te6edf3value Tff7b72= Te6edf3value
Tb4b4b4}
Tff7b72override Tff7b72fun Td2a8ffclearTracerouteResponseTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3_tracerouteResponseTb4b4b4.Te6edf3value Tff7b72= Tff7b72null
Tb4b4b4}
Tff7b72private Tff7b72val Te6edf3_neighborInfoResponse Tff7b72= Te6edf3MutableStateFlowTff7b72<Tffa657String?Tff7b72>Tb4b4b4(Tff7b72nullTb4b4b4)
Tff7b72override Tff7b72val Te6edf3neighborInfoResponseTb4b4b4: Te6edf3StateFlowTff7b72<Tffa657String?Tff7b72> Tff7b72= Te6edf3_neighborInfoResponse
Tff7b72override Tff7b72fun Td2a8ffsetNeighborInfoResponseTb4b4b4(Te6edf3valueTb4b4b4: Tffa657String?Tb4b4b4) Tb4b4b4{
Te6edf3_neighborInfoResponseTb4b4b4.Te6edf3value Tff7b72= Te6edf3value
Tb4b4b4}
Tff7b72override Tff7b72fun Td2a8ffclearNeighborInfoResponseTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3_neighborInfoResponseTb4b4b4.Te6edf3value Tff7b72= Tff7b72null
Tb4b4b4}
Tff7b72private Tff7b72val Te6edf3_serviceAction Tff7b72= Te6edf3MutableSharedFlowTff7b72<Te6edf3ServiceActionTff7b72>Tb4b4b4(Te6edf3replay Tff7b72= T79c0ff1Tb4b4b4)
Tff7b72override Tff7b72val Te6edf3serviceActionTb4b4b4: Te6edf3FlowTff7b72<Te6edf3ServiceActionTff7b72> Tff7b72= Te6edf3_serviceAction
Tff7b72override Tff7b72suspend Tff7b72fun Td2a8ffonServiceActionTb4b4b4(Te6edf3actionTb4b4b4: Te6edf3ServiceActionTb4b4b4) Tb4b4b4{
Te6edf3_serviceActionTb4b4b4.Te6edf3emitTb4b4b4(Te6edf3actionTb4b4b4)
Tb4b4b4}
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.06s